package cn.edu.nyist.service;

import cn.edu.nyist.entity.Admin;
import cn.edu.nyist.entity.CommonUser;
import cn.edu.nyist.util.PageBean;

import java.util.List;
import java.util.Map;

/**
 * (CommonUser)表服务接口
 *
 * @author makejava
 * @since 2021-03-21 17:38:25
 */
public interface CommonUserService {

    CommonUser login(String username, String password);

    PageBean<CommonUser> queryPage(Map<String, Object> paramMap);

    /**
     * 新增数据
     *
     * @param user 实例对象
     * @return 实例对象
     */

    int insertCommonUser(CommonUser user);

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    CommonUser selectById(Integer id);

    int delByCommonUserIds(List<Integer> ids);

    int editByCommonUser(CommonUser user);

    CommonUser selectByName(String username);

    CommonUser selectByEmail(String email);

    CommonUser selectByPhone(String phone);

    CommonUser selectBySex(String sex);

}